import 'package:fish_redux/fish_redux.dart';

enum ItemComponentAction { action,onItemClick,refreshTitle }
class ItemComponentActionCreator {
  static Action onAction() {
    return const Action(ItemComponentAction.action);
  }

  static Action onItemClick(int index){
    return Action(ItemComponentAction.onItemClick,payload: index);
  }

  static Action refreshTitle(){
    return Action(ItemComponentAction.refreshTitle);
  }

}
